x86: fix determination of bit count for struct domain allocations
authorJan Beulich <jbeulich@suse.com>
Mon, 24 Mar 2014 09:48:03 +0000 (10:48 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 24 Mar 2014 09:48:03 +0000 (10:48 +0100)
commitb3d2f8b2cba9fce5bc8995612d0d13fcefec7769
tree5b6ba6696ba4067e371451a7c006d12851f5d734
parenta7ca5c402e8cf61c5e8dd6e6797a627863f5a243
x86: fix determination of bit count for struct domain allocations

We can't just add in the hole shift value, as the hole may be at or
above the 44-bit boundary. Instead we need to determine the total bit
count until reaching 32 significant (not squashed out) bits in PFN
representations.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/domain.c